//q2.cpp
//
//Binyamin 28 december 2017
//===========================================================================
#include<iostream>

using namespace std;

//reverse
//input: a number
//output: reversed number
int reverse(int num)
{
	int res;
	res = 0;
	while(num>0)
	{
		res*=10;
		res+= num%10;
		num/=10;
	}
	return res;
}

//is_polindrum
//input: a number
//output: is it a polindrum.
//1. comparing the number with it reversed.
bool is_polindrum(int num)
{
	if(num == reverse(num))
			return true;
	return false;
}
//output
//No output, no main in the program.
